﻿//dojoConfig = {    locale: "zh-cn",    parseOnLoad: true  };
require([
	"esri/map",  
	"esri/dijit/Geocoder",  
	"esri/graphic",  
	"esri/symbols/SimpleMarkerSymbol",  
	"esri/geometry/screenUtils",  
	"dojo/dom",  
	"dojo/dom-construct",  
	"dojo/query",  
	"dojo/_base/Color",  
	"dojo/domReady!"
], function(
    Map, Geocoder,  Graphic, SimpleMarkerSymbol, screenUtils,  dom, domConstruct, query, Color
) {     
    var map = new Map("mapDiv", {  
	    basemap: "topo",   
		center: [ 121.29, 31.11 ],   
		zoom: 10
	});
	var basemapUrl="http://www.arcgisonline.cn/ArcGIS/rest/services/ChinaOnlineStreetColor/MapServer"; 	
   var basemap = new esri.layers.ArcGISTiledMapServiceLayer(basemapUrl); 	
   map.addLayer(basemap);	

	var geocoder = new Geocoder({  map: map,}, dom.byId("search"));
	geocoder.startup();
});